package com.workerhelping.service.impl;

import com.workerhelping.dao.AnalyzeVODao;
import com.workerhelping.service.AnalyzeVOService;
import com.workerhelping.vo.AnalyzeRecordMoneyVO;
import com.workerhelping.vo.AnalyzeYearAndMoneyVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AnalyzeVOServiceImpl implements AnalyzeVOService {

    @Autowired
    private AnalyzeVODao analyzeVODao;

    @Override
    public List<AnalyzeYearAndMoneyVO> getYearAndMoney() {
        return analyzeVODao.getYearAndMoney();
    }

    @Override
    public List<AnalyzeRecordMoneyVO> getRecordAndMoney() {
        return analyzeVODao.getRecordAndMoney();
    }
}
